<form id="validate" enctype="multipart/form-data" method="post" action="functions/crud/crud_soal.php">
	<div class="row-fluid">
		<div class="span12">                

			<div class="block">                                   
				<div class="data-fluid">
					<!--
					<div class="row-form">
						<div class="span3">Kelas</div>
							<div class="span5">
								<select name="kelas" class="select" style="width: 100%;">
									<?php 
										$q_kelas = mysql_query("select * from kelas");
										while($dt_kelas = mysql_fetch_array($q_kelas)){?>
											<option value="<?php echo $dt_kelas['id']; ?>"><?php echo $dt_kelas['nama']?></option>
									<?php 
										} ?>
																										
								</select>
							</div>
						</div>
					</div>
					-->
					<div class="row-form">
						<div class="span3">Materi</div>
						<div class="span9"> 
								  
							<select name="materi" class="select" style="width: 100%;">
								<?php
									$text_q_materi = "select *, a.id as m_id, a.nama as m_nama, b.nama as k_nama 
										from materi a left join kelas b on a.tipe_kelas = b.tipe group by a.id";
									$q_materi = mysql_query($text_q_materi); 
									while($dt_materi = mysql_fetch_array($q_materi)){?>
										<option value="<?php echo $dt_materi['m_id']; ?>"><?php echo $dt_materi['m_nama'].", kelas ".$dt_materi['k_nama'].", pertemuan ke ".$dt_materi['pertemuan_ke'];?></option>
								<?php 
									} ?>  
																									
							</select>                          
						</div>
					</div>   
					<div class="row-form">
						<div class="span3">Nama Latihan</div>
						<div class="span9"><input type="text" name="nama" placeholder="nama latihan"/></div>
					</div>
					<div class="row-form">
						<div class="span3">Jumlah Soal</div>
						<div class="span9"><input type="text" name="jumlah" id="spinner" value="1"/></div>
					</div>
					
					<div class="row-form">
						<div class="span3"></div>
						<div class="span9">                         						
							<input type="submit" value="Ok" name="submit" class="btn" />
							<input type="hidden" value="<?php echo ID_GURU; ?>" name="guru"/>
							<input type="hidden" value="add" name="operation"/>
							<input type="reset" value="Cancel" name="submit" class="btn btn-warning" />      
						</div>   
					</div>
				</div>        
			</div>
		</div>  
	</div> 
</form>
